package com.lbmb.photodrawaimanager.controller;

import com.lbmb.photodrawaimanager.entity.req.PhotoVideoSaveReq;
import com.lbmb.photodrawaimanager.service.PhotoVideoSaveUserService;
import com.lbmb.photodrawaimanager.utils.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2023/8/34:46 上午
 */
@RestController
@RequestMapping("/api/v1/video/save")
@Api(tags = "用户保存视频相关接口")
public class PhotoVideoSaveController {

    private PhotoVideoSaveUserService videoSaveUserService;

    @ApiOperation(value = "用户保存视频分发收益")
    @RequestMapping("/user_save_video")
    private Response<Boolean> saveVideo(@RequestBody PhotoVideoSaveReq req){

        return Response.ok(videoSaveUserService.saveVideo(req));
    }
}
